package com.gdufe.studytogether.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("comment")
public class Comment implements Serializable {
    @TableId(type = IdType.AUTO)
    Integer id;
    String title;//只有以及评论才有
    String content;
    Integer uid;
    Integer cid;//比赛id
    Integer cmStatus;//过滤状态 0未过滤 1已过滤
    Integer parentId; //第0层为0
    LocalDateTime createTime;
    Integer cmLike;//点赞
    Integer commentCount;//子评论数

    @TableField(exist = false)
    String username;
    @TableField(exist = false)
    String img;//用户头像
    @TableField(exist = false)
    boolean islike;
}
